package com.xyd.wechat.controller;

import com.xyd.wechat.common.Constant;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 运维监控接口
 */
@RestController
public class MonitorControl {

    /**
     * 用于监控程序是否正常运行
     *
     * @return
     */
    @RequestMapping(value = {Constant.BASE_PATH + "/monitor"}, produces = "text/plain; charset=UTF-8", method = RequestMethod.GET)
    public String monitor() {
        return "200";
    }
}